package org.dromara.basic.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.basic.domain.Member;
import org.dromara.basic.domain.vo.MemberVo;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.run.domain.Rule;
import org.dromara.run.domain.Schedule;
import org.dromara.run.domain.vo.ScheduleVo;

import java.util.List;

/**
 * 成员信息表Mapper接口
 *
 * @author chl
 * @date 2024-08-19
 */
@Mapper
public interface MemberMapper extends BaseMapperPlus<Member, MemberVo> {
    @DataPermission({
        @DataColumn(key = "deptName", value = "pbtc.dept_id"),
    })
    Page<MemberVo> selectMemberList(@Param("page") Page<Member> page, @Param(Constants.WRAPPER) Wrapper<Member> queryWrapper);
    @DataPermission({
        @DataColumn(key = "deptName", value = "pbtc.dept_id"),
    })
    List<MemberVo> selectMemberList(@Param(Constants.WRAPPER) Wrapper<Member> queryWrapper);
    @DataPermission({
        @DataColumn(key = "deptName", value = "pbtc.dept_id"),
    })
    MemberVo selectMemberVO(@Param(Constants.WRAPPER) Wrapper<Member> queryWrapper);

}
